<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->layout= 'login';
?>

<div align="center">
	<img style="width:70px;" src="<?php echo Yii::app()->request->baseUrl; ?>/images/template/kunci.png" alt="login-icon" />
</div>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
<div class="login-baris">
	<div class="login-kiri">
		<?php echo $form->labelEx($model,'username', array('class'=>'label-login')); ?>
	</div>
	<div class="login-kanan">
		<?php echo $form->textField($model,'username', array('style'=>'width:100%;')); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>
</div>
<div class="clear-float"></div>
<div class="login-baris">
	<div class="login-kiri">
		<?php echo $form->labelEx($model,'password', array('class'=>'label-login')); ?>
	</div>
	<div class="login-kanan">
		<?php echo $form->passwordField($model,'password', array('style'=>'width:100%;')); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
</div>
<div class="login-baris" align="right">
	<?php echo CHtml::submitButton('Login'); ?>
</div>

<?php $this->endWidget(); ?>
